import _fetch from './require'

function getPhoneCode(data) {
  return  _fetch({
        url:'/sendsms',
            method:'post',
            data:data
    })
}




// 注册api  就将注册封装成一个方法
function toRegister(data) {
    return  _fetch({
          url:'/register',
              method:'post',
              data
      })
  }
export {getPhoneCode,toRegister}